package cn.zhangchg.leetcode.object;

import org.openjdk.jol.info.ClassLayout;

public class SyncTest {
    private static class T{

    }


    public static void main(String[] args) {
        //-XX:-UseCompressedClassPointers -XX:-UseCompressedOops
        T t = new T();
        System.out.println(ClassLayout.parseInstance(t).toPrintable());
        t.hashCode();
        System.out.println(ClassLayout.parseInstance(t).toPrintable());
        synchronized (t){
            System.out.println(ClassLayout.parseInstance(t).toPrintable());
        }
        System.out.println(ClassLayout.parseInstance(t).toPrintable());
    }
}
